//
//  CSSearchHeader.m
//  CarSalesMS_GCX
//
//  Created by Ssky on 2016/11/18.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import "CSSearchHeader.h"
#import "CSSearchCellContent.h"

@interface CSSearchHeader ()

@property (nonatomic,weak) CSSearchCellContent * vContent;

@end

@implementation CSSearchHeader

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}


#pragma markl - setupUI
-(void) setupUI {
    //vContent
    CSSearchCellContent * vContent = [[CSSearchCellContent alloc] init];
    [self.contentView addSubview:vContent];
    
    [vContent mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.leading.bottom.trailing.equalTo(self.contentView);
    }];
    
    //
    self.vContent = vContent;
}



- (void)setBgVContentColor:(UIColor *)bgVContentColor {
    _bgVContentColor = bgVContentColor;
    self.vContent.backgroundColor = bgVContentColor;
}





































@end
